package com.minglead.springboot.platform.sys.security;

/**
 * 用户和密码（包含验证码）令牌类
 */
public class UsernamePasswordToken extends org.apache.shiro.authc.UsernamePasswordToken {

	private static final long serialVersionUID = 1L;

	private String captcha;
	private boolean mobileLogin;
	public UsernamePasswordToken() {
		super();
	}

	public UsernamePasswordToken(String username,String password,boolean rememberMe,String captcha) {
		super(username, password,rememberMe);
		this.captcha = captcha;
	}
	
	public UsernamePasswordToken(String username) {
		super.setUsername(username);
	}	

	public String getCaptcha() {
		return captcha;
	}

	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	}

	public boolean isMobileLogin() {
		return mobileLogin;
	}	
}